﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ControlUser_ControlUpdateVipForCustomer : System.Web.UI.UserControl
{
    string str = BCDataCenter.Configuration.CurrentConnectionString;
    string error = "";
    ClassExecute.ClassExecute dt;
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void txtMaTVV_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (!txtMaTVV.Text.Equals(String.Empty))
            {
                string str1 = txtMaTVV.Text;
                int index = str1.IndexOf("|");
                txtMaTVV.Text = str1.Substring(0, index - 1);
                txtHoTen.Text = str1.Substring(index + 2, str1.Length - index - 2);  

            }
        }
        catch (Exception ex)
        {
            BCDataCenter.ClassWriteLogErr ob = new BCDataCenter.ClassWriteLogErr();
            string method = System.Reflection.MethodBase.GetCurrentMethod().Name;
            ob.ErrorLog(ex.Message, method);

        }
    }
    protected void btSave_Click(object sender, EventArgs e)
    {

    }
}